provider Monitors DELETE /api/0/organizations/{organization_id_or_slug}/detectors/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/detectors/
Bulk Delete Monitors
Bulk delete Monitors for a given organization
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
project query
The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`
array
query query
An optional search query for filtering monitors. Available fields are: - `name` - `type`: e.g. `error`, `metric_issue`, `issue_stream` - `assignee`: email, username, #team, me, none
string
sortBy query
The property to sort results by. If not specified, the results are sorted by id. Available fields are: - `name` - `id` - `type` - `connectedWorkflows` - `latestGroup` - `openIssues` Prefix with `-` to sort in descending order.
string
id query
The ID of the monitor you'd like to query.
array

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

bulkDeleteMonitors
DELETE/api/0/organizations/{organization_id_or_slug}/detectors/
Bulk delete Monitors for a given organization

Parameters

required

The ID or slug of the organization the resource belongs to.

The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`

An optional search query for filtering monitors. Available fields are: - `name` - `type`: e.g. `error`, `metric_issue`, `issue_stream` - `assignee`: email, username, #team, me, none

The property to sort results by. If not specified, the results are sorted by id. Available fields are: - `name` - `id` - `type` - `connectedWorkflows` - `latestGroup` - `openIssues` Prefix with `-` to sort in descending order.

The ID of the monitor you'd like to query.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.bulkDeleteMonitors()